// Text overflow
@mixin text-overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

// Line clamp
@mixin line-clamp($lines: 2, $line-height: 1.3em) {
  display: -webkit-box;
  text-overflow: ellipsis;
  word-break: break-all;
  overflow: hidden;
  /* autoprefixer: ignore next */
  -webkit-box-orient: vertical;
  -webkit-line-clamp: $lines;
  line-height: $line-height;
  max-height: $line-height * $lines;
}

@mixin flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
